<?php namespace Home\Controller;
use Hdphp\Controller\Controller;
class registerController extends Controller{

	
	public function index(){
		
		
		if(IS_POST){
		
			
            $registerModel = new  \Common\Model\Register;
			if(!$registerModel->store()){
			
				View::error($registerModel->getError());
				
			  }else{
//				View::success("添加成功",U('Type/index'));
			   }

		}
		
		
	}
	
	//载入验证码
	public function code(){
		Code::make();
	}
}
 ?>